<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
	request.setCharacterEncoding("UTF-8");
	response.setContentType("text/html;charset=UTF-8");
%>
<jsp:include page="changePwd.jsp" flush="true"/> 
<script type="text/javascript" src="<%=path%>/js/controllers/homeCtrl.js"></script>
<link rel="stylesheet" href="<%=path%>/css/home.css" type="text/css" />
<div class="homeWrap">
	<div class="container-fluid">
		<div class="panel panel-default">
			<div class="panel-heading">
				<h3 class="panel-title">统计概况</h3>
			</div>
			<div class="panel-body common">
				<div class="row">
					<div class="col-lg-31 text-center">
						<i class="pick"></i>
						<div>
							<p class="text-center num" id="totalOrderNumber">
								 
							</p>
							<p class="text-center word">总订单数</p>
						</div>
						
					</div>
					<div class="col-lg-31 text-center">
						<i class="recharge"></i>
						<div>
						<p class="text-center num" id="totalOrderAmount">
							 
						</p>
						<p class="text-center word">总订单金额</p>
						</div>
					</div>
					<div class="col-lg-31 text-center">
						<i class="single "></i>
						<div>
						<p class="text-center num" id="totalProduct">
						
						</p>
						<p class="text-cente word">当前总商品数</p>
						</div>
					</div>
					<c:if test="${_user_supplier.isInterior == '1'}">
						<div class="col-lg-31 text-center">
							<i class="send"></i>
							<div>
							<p class="text-center num" id="totalSupplier">
							
							</p>
							<p class="text-center word">总供应商数量</p>
							</div>
						</div>
					</c:if>
				</div>
			</div>
		</div>

		<div class="row">
			<div class="col-lg-41">
				<div class="panel panel-default">
					<div class="panel-heading">
						<h3 class="panel-title">订单管理</h3>
					</div>
					<div class="panel-body">
						  <table class="table">
								<tr>
									<th>项目</th>
									<th>本日</th>
									<th>本月</th>
								</tr>
								<tr>
									<td>订单总数</td>
									<td class="orange">
										<span id="totalOrderToday"></span>
									</td>
									<td class="orange">
										<span id="totalOrderMonth"></span>
									</td>
								</tr>
								<tr>
									<td>已完成数</td>
									<td class="orange">
										<span id="dayCompleted"></span>
									</td>
									<td class="orange">
										<span id="monthCompleted"></span>
									</td>
								</tr>
						  </table>	
					</div>
				</div>
			</div>
			
			<c:if test="${_user_supplier.isInterior == '1'}">
				<div class="col-lg-41">
					<div class="panel panel-default">
						<div class="panel-heading">
							<h3 class="panel-title">商品管理</h3>
						</div>
						<div class="panel-body">
							 <table class="table">
									<tr>
										<th>项目</th>
										<th>总计</th>									
									</tr>
									<tr>
										<td>待审核商品</td>
										<td class="orange">
											<span id="waitAuditProduct"></span>
										</td>
									</tr>
									<tr>
										<td>审核通过商品</td>
										<td class="orange">
											<span id="passedProduct"></span>
										</td>
									</tr>
							  </table>		
						</div>
					</div>
				</div>
			</c:if>
			
			<c:if test="${_user_supplier.isInterior == '1'}">
				<div class="col-lg-41">
					<div class="panel panel-default">
						<div class="panel-heading">
							<h3 class="panel-title">供应商管理</h3>
						</div>
						<div class="panel-body">
							 <table class="table">
									<tr>
										<th>项目</th>
										<!-- <th>今天</th> -->
										<th>总计</th>									
									</tr>
									<tr>
										<td>待审核总数</td>		
										<td class="orange numme1">
											<span id="waitAuditSupplier"></span>
										 </td>							
										<!-- <td class="orange numme2"> </td> -->
									</tr>
									<tr>
										<td>审核通过总数</td>
										<td class="orange numtome1">
											<span id="passedSupplier"></span>
										 </td>
										<!-- <td class="orange numtome2"> </td> -->
									</tr>
							  </table>		
						</div>
					</div>
				</div>
			</c:if>
			
		</div>
		
</div>
</div>